package org.bomblauncher;

import com.google.devtools.simple.runtime.components.android.ActivityStarter;
import com.google.devtools.simple.runtime.components.android.Button;
import com.google.devtools.simple.runtime.components.android.Clock;
import com.google.devtools.simple.runtime.components.android.Form;
import com.google.devtools.simple.runtime.components.android.Label;
import com.google.devtools.simple.runtime.components.android.LocationSensor;
import com.google.devtools.simple.runtime.components.android.TextBox;
import com.google.devtools.simple.runtime.components.android.Web;

public class Screen1 extends Form
{
	private Label lblRisultatoWeb;
	private TextBox Txt_Bomb;
	private Button btnLaunch;
	private ActivityStarter ActSt_PhpRead;
	private Web webCtrl;
	private LocationSensor LocSens;
	private Clock Timer;
	
	void $define()
	{
		
		lblRisultatoWeb = new Label( this );
		lblRisultatoWeb.Text( "Sparala grossa....." );
		lblRisultatoWeb.Width( -2 );
		lblRisultatoWeb.TextAlignment( 1 );
		
		Txt_Bomb = new TextBox( this );
		Txt_Bomb.Hint( "La tua bomba" );
		Txt_Bomb.Width( -2 );
		Txt_Bomb.TextAlignment( 1 );
		
		btnLaunch = new Button( this );
		btnLaunch.Text( "Lancia la bomba!!" );
		btnLaunch.Width( -2 );
		btnLaunch.TextColor( 0xFFFF0000 );
		
		ActSt_PhpRead = new ActivityStarter( this );
		ActSt_PhpRead.Action( "android.intent.action.VIEW" );
		
		webCtrl = new Web( this );
		
		LocSens = new LocationSensor( this );
		LocSens.Enabled( false );
		
		Timer = new Clock( this );
		Timer.TimerEnabled( false );
		
	}
	public void dispatchEvent( Object component, String componentName, String eventName, Object[] params )
	{
	}
}